
attribute highp vec4 vertex;
attribute vec3 normal;
attribute vec3 diffColor;
uniform mediump mat4 modelViewMatrix;
uniform mat4 projMatrix;

varying vec3 varyingNormal;
varying vec3 varyingViewDir;
varying vec3 varyingDiffColor;
varying vec3 positions;
void main(void)
{
    varyingNormal = vec3(modelViewMatrix*vec4(normal, 0.0));
    varyingViewDir = vec3(modelViewMatrix*vertex);
    varyingDiffColor = diffColor;
	positions = vec3(vertex);
    gl_Position = projMatrix * modelViewMatrix * vertex;
}
